Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix message when leave workshop #774

Merged
merged 5 commits into from
Jan 18, 2022
Merged

fix message when leave workshop #774

merged 5 commits into from
Jan 18, 2022

Conversation

Olya-web7
Copy link
Contributor

change message when leave the workshop

@@ -480,7 +481,9 @@ export class UserState {

@Action(OnUpdateApplicationSuccess)
onUpdateApplicationSuccess({ dispatch }: StateContext<UserStateModel>, { payload }: OnUpdateApplicationSuccess): void {
dispatch(new ShowMessageBar({ message: 'Статус заявки успішно змінено', type: 'success' }));
console.log('OnUpdateApplicationSuccess', payload);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove condole log please

dispatch(new ShowMessageBar({ message: 'Статус заявки успішно змінено', type: 'success' }));
console.log('OnUpdateApplicationSuccess', payload);

dispatch(new ShowMessageBar({ message: payload.status === ApplicationStatus.Left ? `Гурток успішно залишено` : 'Статус заявки успішно змінено', type: 'success' }));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct, but I am thinking about creating an enum for different statuses?
When provider reject the application, then there is a text "Заявку успішно відхилено"
Approve -"Заявку успішно прийнято"
etc

We can confirm it with BA.

@@ -1,4 +1,5 @@
{
"editor.detectIndentation": false,
"editor.tabSize": 2,
"angular.enable-strict-mode-prompt": false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@@ -171,7 +171,7 @@ export class OnUpdateApplicationFail {
}
export class OnUpdateApplicationSuccess {
static readonly type = '[user] update Application success';
constructor(public payload) { }
constructor(public payload: any) { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't use the typo "any", it's a bad practice. Add typo of AplicationUpdate, I believe this is the correct one.

@Olya-web7 Olya-web7 merged commit d902a4b into develop Jan 18, 2022
@Olya-web7 Olya-web7 deleted the message-leave-workshop branch January 18, 2022 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants